package cn.gok.springsecuritydemo3;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: chen fan
 * @since: 2022/11/21 17:37
 * @description:
 */
@Controller
//@CrossOrigin
public class LoginController {

    @RequestMapping("/login")
    @ResponseBody
    public Map<String,Object> login() {
        HashMap<String, Object> result = new HashMap<>();
        result.put("code",200);
        result.put("msg","登录成功");
        return result;
    }

}
